<?php

/**
 * 显示信息
 *
 * @author Shaun
 */

namespace Admin\Controller;

use Zend\View\Model\ViewModel;
use Zend\Mvc\Controller\AbstractActionController;

class ShowMessageController extends AbstractActionController {

    public function successAction() {
        $par = $this->params()->fromRoute('par', 0);
        $msg = $this->params()->fromRoute('msg', 0);
        return new ViewModel(array('action' => $par, 'msg' => $msg));
    }

    public function failureAction() {
        $par = $this->params()->fromRoute('par', 0);
        $msg = urldecode($this->params()->fromRoute('msg', 0));
        return new ViewModel(array('action' => $par, 'msg' => $msg));
    }

}
